<#include "../base/basic-page.ftl">
<#include "../common/table.ftl">
<#include "../common/modal.ftl">
<#include "../common/form.ftl">
<#include "../common/pagination.ftl">
<@page_head>

</@page_head>
<@page_body page_title="订单管理" side_active="/admin/orders/record">
    <div class="main-content container-fluid">
        <div class="row">
            <!--Responsive table-->
            <div class="col-sm-12">
                <@table_wrap "全部订单">
                <@table_tools>
                </@table_tools>
                <@table extra="table-striped table-hover">
                    <@table_head>
                        <th style="width:15%;">商品信息</th>
                        <th style="width:7%;" class="number">商品价格</th>
                        <th style="width:5%;" class="number">购买数量</th>
                        <th style="width:7%;" class="number">付款金额</th>
                        <th style="width:5%;">订单状态</th>
                        <th style="width:10%;" class="number">平台收益</th>
                        <th style="width:15%;">来源渠道</th>
                        <th style="width:10%;">创建时间</th>
                        <th style="width:10%;"></th>
                    </@table_head>
                    <@table_body>
                    <#list recordData.records as item>
                        <tr>
                            <td class="user-avatar cell-detail user-info">
                                <img class="mt-0 mt-md-2 mt-lg-0" src="/static/img/img-avatar-1.png" alt="Avatar">
                                <span class="record-title">${item.goodsInfo}</span>
                                <span class="cell-detail-description">ID:${item.tbOrderId}</span>
                            </td>
                            <td class="number">
                                ￥${item.goodsPrice?string['0.00']}元
                            </td>
                            <td class="number">
                                ${item.goodsAmount}
                            </td>
                            <td class="number">
                                ￥${item.payMoney?string['0.00']}元
                            </td>
                            <td>
                                ${item.orderStatus}
                            </td>
                            <td class="cell-detail number">
                                <span>￥${item.commission?string['0.00']}元</span>
                                <span class="cell-detail-description">${item.commissionRate?string['0.00']}%</span>
                            </td>
                            <td>
                                mm_107186047_35558541_146530882
                            </td>
                            <td class="cell-detail">
                                <span>${item.orderCtime?string('yyyy年MM月dd日')}</span>
                                <span class="cell-detail-description">${item.orderCtime?string('HH:mm')}</span>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </#list>

                    </@table_body>
                </@table>
                    <@pagination (recordData.current)!0,(recordData.size)!0,(recordData.total)!0>
                    </@pagination>
                </@table_wrap>
            </div>
        </div>
    </div>
</@page_body>
<@page_foot>
<script src="/static/lib/parsley/parsley.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function(){
        //initialize the javascript
        var cli = new S7BuyCli();
        cli.init();
        cli.initSettlement();
    });
</script>
</@page_foot>